<!doctype html>



  


<html class="theme-next mist use-motion">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />












  
  
  <link href="/vendors/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/vendors/font-awesome/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.0.1" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="小技巧," />








  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.0.1" />






<meta name="description" content="pycharm 标准快捷键">
<meta property="og:type" content="article">
<meta property="og:title" content="(转载)pycharm快捷键及一些常用设置">
<meta property="og:url" content="http://rainy008.github.io/2017/06/08/(转载) pycharm快捷键及一些常用设置/index.html">
<meta property="og:site_name" content="Rainy008">
<meta property="og:description" content="pycharm 标准快捷键">
<meta property="og:updated_time" content="2017-06-08T14:48:22.415Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="(转载)pycharm快捷键及一些常用设置">
<meta name="twitter:description" content="pycharm 标准快捷键">



<script type="text/javascript" id="hexo.configuration">
  var NexT = window.NexT || {};
  var CONFIG = {
    scheme: 'Mist',
    sidebar: {"position":"left","display":"post"},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: 0,
      author: '博主'
    }
  };
</script>

  <title> (转载)pycharm快捷键及一些常用设置 | Rainy008 </title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  










  
  
    
  

  <div class="container one-collumn sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-meta ">
  

  <div class="custom-logo-site-title">
    <a href="/"  class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <span class="site-title">Rainy008</span>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>
  <p class="site-subtitle">重拾梦想  茕茕前行</p>
</div>

<div class="site-nav-toggle">
  <button>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
  </button>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      

      
    </ul>
  

  
</nav>

 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                (转载)pycharm快捷键及一些常用设置
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">发表于</span>
            <time itemprop="dateCreated" datetime="2017-06-08T22:31:43+08:00" content="2017-06-08">
              2017-06-08
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/pycharm/" itemprop="url" rel="index">
                    <span itemprop="name">pycharm</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2017/06/08/(转载) pycharm快捷键及一些常用设置/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2017/06/08/(转载) pycharm快捷键及一些常用设置/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          
          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>原文网址：<a href="http://www.cnblogs.com/kaituorensheng/p/5371366.html" target="_blank" rel="external">http://www.cnblogs.com/kaituorensheng/p/5371366.html</a></p>
<h1 id="1、编辑（Editing）"><a href="#1、编辑（Editing）" class="headerlink" title="1、编辑（Editing）"></a>1、编辑（Editing）</h1><p>Ctrl + Space 基本的代码完成（类、方法、属性）<br>Ctrl + Alt + Space 快速导入任意类<br>Ctrl + Shift + Enter 语句完成<br>Ctrl + P 参数信息（在方法中调用参数）<br>Ctrl + Q 快速查看文档<br>Shift + F1 外部文档<br>Ctrl + 鼠标 简介<br>Ctrl + F1 显示错误描述或警告信息<br>Alt + Insert 自动生成代码<br>Ctrl + O 重新方法<br>Ctrl + Alt + T 选中<br>Ctrl + / 行注释<br>Ctrl + Shift + / 块注释<br>Ctrl + W 选中增加的代码块<br>Ctrl + Shift + W 回到之前状态<br>Ctrl + Shift + ]/[ 选定代码块结束、开始<br>Alt + Enter 快速修正<br>Ctrl + Alt + L 代码格式化<br>Ctrl + Alt + O 优化导入<br>Ctrl + Alt + I 自动缩进<br>Tab / Shift + Tab 缩进、不缩进当前行<br>Ctrl+X/Shift+Delete 剪切当前行或选定的代码块到剪贴板<br>Ctrl+C/Ctrl+Insert 复制当前行或选定的代码块到剪贴板<br>Ctrl+V/Shift+Insert 从剪贴板粘贴<br>Ctrl + Shift + V 从最近的缓冲区粘贴<br>Ctrl + D 复制选定的区域或行<br>Ctrl + Y 删除选定的行<br>Ctrl + Shift + J 添加智能线<br>Ctrl + Enter 智能线切割<br>Shift + Enter 另起一行<br>Ctrl + Shift + U 在选定的区域或代码块间切换<br>Ctrl + Delete 删除到字符结束<br>Ctrl + Backspace 删除到字符开始<br>Ctrl + Numpad+/- 展开折叠代码块<br>Ctrl + Numpad+ 全部展开<br>Ctrl + Numpad- 全部折叠<br>Ctrl + F4 关闭运行的选项卡</p>
<h1 id="2、查找-替换-Search-Replace"><a href="#2、查找-替换-Search-Replace" class="headerlink" title="2、查找/替换(Search/Replace)"></a><strong>2、查找/替换(Search/Replace)</strong></h1><p>F3 下一个<br>Shift + F3 前一个<br>Ctrl + R 替换<br>Ctrl + Shift + F 全局查找<br>Ctrl + Shift + R 全局替换</p>
<h1 id="3、运行-Running"><a href="#3、运行-Running" class="headerlink" title="3、运行(Running)"></a><strong>3、运行(Running)</strong></h1><p>Alt + Shift + F10 运行模式配置<br>Alt + Shift + F9 调试模式配置<br>Shift + F10 运行<br>Shift + F9 调试<br>Ctrl + Shift + F10 运行编辑器配置<br>Ctrl + Alt + R 运行manage.py任务</p>
<h1 id="4、调试-Debugging"><a href="#4、调试-Debugging" class="headerlink" title="4、调试(Debugging)"></a><strong>4、调试(Debugging)</strong></h1><p>F8 跳过<br>F7 进入<br>Shift + F8 退出<br>Alt + F9 运行游标<br>Alt + F8 验证表达式<br>Ctrl + Alt + F8 快速验证表达式<br>F9 恢复程序<br>Ctrl + F8 断点开关<br>Ctrl + Shift + F8 查看断点</p>
<h1 id="5、导航-Navigation"><a href="#5、导航-Navigation" class="headerlink" title="5、导航(Navigation)"></a><strong>5、导航(Navigation)</strong></h1><p>Ctrl + N 跳转到类<br>Ctrl + Shift + N 跳转到符号<br>Alt + Right/Left 跳转到下一个、前一个编辑的选项卡<br>F12 回到先前的工具窗口<br>Esc 从工具窗口回到编辑窗口<br>Shift + Esc 隐藏运行的、最近运行的窗口<br>Ctrl + Shift + F4 关闭主动运行的选项卡<br>Ctrl + G 查看当前行号、字符号<br>Ctrl + E 当前文件弹出<br>Ctrl+Alt+Left/Right 后退、前进<br>Ctrl+Shift+Backspace 导航到最近编辑区域<br>Alt + F1 查找当前文件或标识<br>Ctrl+B / Ctrl+Click 跳转到声明<br>Ctrl + Alt + B 跳转到实现<br>Ctrl + Shift + I查看快速定义<br>Ctrl + Shift + B跳转到类型声明<br>Ctrl + U跳转到父方法、父类<br>Alt + Up/Down跳转到上一个、下一个方法<br>Ctrl + ]/[跳转到代码块结束、开始<br>Ctrl + F12弹出文件结构<br>Ctrl + H类型层次结构<br>Ctrl + Shift + H方法层次结构<br>Ctrl + Alt + H调用层次结构<br>F2 / Shift + F2下一条、前一条高亮的错误<br>F4 / Ctrl + Enter编辑资源、查看资源<br>Alt + Home显示导航条F11书签开关<br>Ctrl + Shift + F11书签助记开关<br>Ctrl + #[0-9]跳转到标识的书签<br>Shift + F11显示书签</p>
<h1 id="6、搜索相关-Usage-Search"><a href="#6、搜索相关-Usage-Search" class="headerlink" title="6、搜索相关(Usage Search)"></a><strong>6、搜索相关(Usage Search)</strong></h1><p>Alt + F7/Ctrl + F7文件中查询用法<br>Ctrl + Shift + F7文件中用法高亮显示<br>Ctrl + Alt + F7显示用法</p>
<h1 id="7、重构-Refactoring"><a href="#7、重构-Refactoring" class="headerlink" title="7、重构(Refactoring)"></a><strong>7、重构(Refactoring)</strong></h1><p>F5复制F6剪切<br>Alt + Delete安全删除<br>Shift + F6重命名<br>Ctrl + F6更改签名<br>Ctrl + Alt + N内联<br>Ctrl + Alt + M提取方法<br>Ctrl + Alt + V提取属性<br>Ctrl + Alt + F提取字段<br>Ctrl + Alt + C提取常量<br>Ctrl + Alt + P提取参数</p>
<h1 id="8、控制VCS-Local-History"><a href="#8、控制VCS-Local-History" class="headerlink" title="8、控制VCS/Local History"></a><strong>8、控制VCS/Local History</strong></h1><p>Ctrl + K提交项目<br>Ctrl + T更新项目<br>Alt + Shift + C查看最近的变化<br>Alt + BackQuote(’)VCS快速弹出</p>
<h1 id="9、模版-Live-Templates"><a href="#9、模版-Live-Templates" class="headerlink" title="9、模版(Live Templates)"></a><strong>9、模版(Live Templates)</strong></h1><p>Ctrl + Alt + J当前行使用模版<br>Ctrl +Ｊ插入模版</p>
<h1 id="10、基本-General"><a href="#10、基本-General" class="headerlink" title="10、基本(General)"></a><strong>10、基本(General)</strong></h1><p>Alt + #[0-9]打开相应的工具窗口<br>Ctrl + Alt + Y同步<br>Ctrl + Shift + F12最大化编辑开关<br>Alt + Shift + F添加到最喜欢<br>Alt + Shift + I根据配置检查当前文件<br>Ctrl + BackQuote(’)快速切换当前计划<br>Ctrl + Alt + S　打开设置页<br>Ctrl + Shift + A查找编辑器里所有的动作<br>Ctrl + Tab在窗口间进行切换</p>
<h1 id="一些常用设置："><a href="#一些常用设置：" class="headerlink" title="一些常用设置："></a><strong>一些常用设置：</strong></h1><ol>
<li><p>pycharm默认是自动保存的，习惯自己按ctrl + s 的可以进行如下设置：</p>
<p>file -&gt; Setting -&gt; General -&gt; Synchronization -&gt; Save files on frame deactivation 和 Save files automatically if application is idle for .. sec 的勾去掉</p>
</li>
<li><p>file -&gt;Setting -&gt; Editor -&gt; Editor Tabs -&gt; Mark modified tabs with asterisk 打上勾</p>
</li>
<li><p>Alt + Enter: 自动添加包</p>
</li>
<li><p>对于常用的快捷键，可以设置为visual studio(eclipse…)一样的：<br>file -&gt; Setting -&gt; Keymap -&gt; Keymaps -&gt; vuisual studio -&gt; Apply</p>
</li>
<li><p>Pycharm中默认是不能用Ctrl+滚轮改变字体大小的，可以在file -&gt; Setting -&gt;Editor-〉Mouse中设置</p>
</li>
<li><p>要设置Pycharm的字体，要先在file -&gt; Setting -&gt;Editor-〉Editor中选择一种风格并保存，然后才可以改变</p>
</li>
<li><p>在setting中搜索theme可以改变主题，所有配色统一改变</p>
</li>
</ol>

      
    </div>

    <div>
      
        
      
    </div>

    <div>
      
        
  <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
    <div>坚持原创技术分享，您的支持将鼓励我继续创作！</div>
    <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
      <span>赏</span>
    </button>
    <div id="QR" style="display: none;">
      
        <div id="wechat" style="display: inline-block">
          <img id="wechat_qr" src="/path/to/wechat-reward-image" alt="Rainy008 WeChat Pay"/>
          <p>微信打赏</p>
        </div>
      
      
        <div id="alipay" style="display: inline-block">
          <img id="alipay_qr" src="/path/to/alipay-reward-image" alt="Rainy008 Alipay"/>
          <p>支付宝打赏</p>
        </div>
      
    </div>
  </div>


      
    </div>

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/小技巧/" rel="tag">#小技巧</a>
          
        </div>
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2017/06/05/pip 使用全解析/" rel="next" title="pip 使用全解析">
                <i class="fa fa-chevron-left"></i> pip 使用全解析
              </a>
            
          </div>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2017/06/08/(转载) python操作Excel读写--使用xlrd/" rel="prev" title="(转载)python操作Excel读写--使用xlrd">
                (转载)python操作Excel读写--使用xlrd <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          
  <div class="comments" id="comments">
    
      <div class="ds-thread" data-thread-key="2017/06/08/(转载) pycharm快捷键及一些常用设置/"
           data-title="(转载)pycharm快捷键及一些常用设置" data-url="http://rainy008.github.io/2017/06/08/(转载) pycharm快捷键及一些常用设置/">
      </div>
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel ">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/images/avatar.gif"
               alt="Rainy008" />
          <p class="site-author-name" itemprop="name">Rainy008</p>
          <p class="site-description motion-element" itemprop="description">留下记忆足迹，记录所学所想</p>
        </div>
        <nav class="site-state motion-element">
          <div class="site-state-item site-state-posts">
            <a href="/archives">
              <span class="site-state-item-count">8</span>
              <span class="site-state-item-name">日志</span>
            </a>
          </div>

          
            <div class="site-state-item site-state-categories">
              <a href="/categories">
                <span class="site-state-item-count">4</span>
                <span class="site-state-item-name">分类</span>
              </a>
            </div>
          

          
            <div class="site-state-item site-state-tags">
              <a href="/tags">
                <span class="site-state-item-count">5</span>
                <span class="site-state-item-name">标签</span>
              </a>
            </div>
          

        </nav>

        

        <div class="links-of-author motion-element">
          
        </div>

        
        

        
        

      </section>

      
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">
            
              
            
            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#1、编辑（Editing）"><span class="nav-text">1、编辑（Editing）</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#2、查找-替换-Search-Replace"><span class="nav-text">2、查找/替换(Search/Replace)</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#3、运行-Running"><span class="nav-text">3、运行(Running)</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#4、调试-Debugging"><span class="nav-text">4、调试(Debugging)</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#5、导航-Navigation"><span class="nav-text">5、导航(Navigation)</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#6、搜索相关-Usage-Search"><span class="nav-text">6、搜索相关(Usage Search)</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#7、重构-Refactoring"><span class="nav-text">7、重构(Refactoring)</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#8、控制VCS-Local-History"><span class="nav-text">8、控制VCS/Local History</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#9、模版-Live-Templates"><span class="nav-text">9、模版(Live Templates)</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#10、基本-General"><span class="nav-text">10、基本(General)</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#一些常用设置："><span class="nav-text">一些常用设置：</span></a></li></ol></div>
            
          </div>
        </section>
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2017</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Rainy008</span>
</div>

<div class="powered-by">
  由 <a class="theme-link" href="http://hexo.io">Hexo</a> 强力驱动
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Mist
  </a>
</div>

        

        
      </div>
    </footer>

    <div class="back-to-top">
      <i class="fa fa-arrow-up"></i>
    </div>
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  



  
  <script type="text/javascript" src="/vendors/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/vendors/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/vendors/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/vendors/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/vendors/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/vendors/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.0.1"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.0.1"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.0.1"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.0.1"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.0.1"></script>



  

  
    
  

  <script type="text/javascript">
    var duoshuoQuery = {short_name:"rainy008"};
    (function() {
      var ds = document.createElement('script');
      ds.type = 'text/javascript';ds.async = true;
      ds.id = 'duoshuo-script';
      ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
      ds.charset = 'UTF-8';
      (document.getElementsByTagName('head')[0]
      || document.getElementsByTagName('body')[0]).appendChild(ds);
    })();
  </script>

  
    
  





  
  
  

  

  

</body>
</html>
